<form id="add-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">

    <div class="form-group">
        <label for="c-serve_name" class="control-label col-xs-12 col-sm-2">{:__('Serve name')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-serve_name" data-rule="required" class="form-control" name="row[serve_name]" type="text" value="{$row.serve_name}">
        </div>
    </div>
    <div class="form-group">
        <label for="c-en_serve_name" class="control-label col-xs-12 col-sm-2">{:__('En Serve name')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-en_serve_name" data-rule="required" class="form-control" name="row[en_serve_name]" type="text" value="{$row.en_serve_name}">
        </div>
    </div>

    <div class="form-group">
        <label for="c-path" class="control-label col-xs-12 col-sm-2">{:__('Path')}:</label>
        <div class="col-xs-12 col-sm-8">
            {:build_selectpage('row[path]',$row.path,"firm/label/storeSelect")}
        </div>
    </div>

    <div class="form-group">
        <label for="c-icon" class="control-label col-xs-12 col-sm-2">{:__('Icon')}:</label>
        <div class="col-xs-12 col-sm-8">
            {:build_image('icon',$row.icon,['name'=>"row[icon]",'data-rule'=>"required"])}
        </div>
    </div>

    <div class="form-group">
        <label for="c-checked_icon" class="control-label col-xs-12 col-sm-2">{:__('Checked icon')}:</label>
        <div class="col-xs-12 col-sm-8">
            {:build_image('checked_icon',$row.checked_icon,['name'=>"row[checked_icon]",'data-rule'=>"required"])}
        </div>
    </div>

    <div class="form-group">
        <label for="c-serve_img" class="control-label col-xs-12 col-sm-2">{:__('Serve img')}:</label>
        <div class="col-xs-12 col-sm-8">
            {:build_image('serve_img',$row.serve_img,['name'=>"row[serve_img]",'data-rule'=>"required"])}
        </div>
    </div>
    <div class="form-group">
        <label for="c-mobile_serve_img" class="control-label col-xs-12 col-sm-2">{:__('Mobile_serve_img')}:</label>
        <div class="col-xs-12 col-sm-8">
            {:build_image('mobile_serve_img',$row.mobile_serve_img,['name'=>"row[mobile_serve_img]",'data-rule'=>"required"])}
        </div>
    </div>

    <div class="form-group">
        <label for="c-weigh" class="control-label col-xs-12 col-sm-2">{:__('Weigh')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-weigh" class="form-control" name="row[weigh]" type="number" value="{$row.weigh}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Status')}:</label>
        <div class="col-xs-12 col-sm-8">
            {:build_radios('row[status]', [ '1'=>__('Stop'), '2'=>__('Normal') ],$row.status)}
        </div>
    </div>

    <div class="form-group type-editor">
        <label for="c-content" class="control-label col-xs-12 col-sm-2">{:__('Content')}:</label>
        <div class="col-xs-12 col-sm-8">
            {:build_editor('row[content]',$row.content, ['id' => 'c-content'])}
        </div>
    </div>
    <div class="form-group type-editor">
        <label for="c-en_content" class="control-label col-xs-12 col-sm-2">{:__('Content')}(英文):</label>
        <div class="col-xs-12 col-sm-8">
            {:build_editor('row[en_content]', $row.en_content, ['id' => 'c-en_content'])}
        </div>
    </div>
    <div class="form-group type-editor">
        <label for="c-mobile_content" class="control-label col-xs-12 col-sm-2">{:__('Mobile_content')}:</label>
        <div class="col-xs-12 col-sm-8">
            {:build_editor('row[mobile_content]', $row.mobile_content, ['id' => 'c-mobile_content'])}
        </div>
    </div>
    <div class="form-group type-editor">
        <label for="c-mobile_en_content" class="control-label col-xs-12 col-sm-2">{:__('Mobile_en_content')}:</label>
        <div class="col-xs-12 col-sm-8">
            {:build_editor('row[mobile_en_content]', $row.mobile_en_content, ['id' => 'c-mobile_en_content'])}
        </div>
    </div>
    <div class="form-group">
        <label for="c-banner" class="control-label col-xs-12 col-sm-2">{:__('Banner')}:</label>
        <div class="col-xs-12 col-sm-8">
            {:build_images('banner',$row.banner,['name'=>"row[banner]"])}
        </div>
    </div>

    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-success btn-embossed disabled">{:__('OK')}</button>
            <button type="reset" class="btn btn-default btn-embossed btn-reset">{:__('Reset')}</button>
        </div>
    </div>
</form>